package com.jzzzb.distributedlock.annotation;

import com.jzzzb.distributedlock.config.ConfigMarker;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 启用分布式锁注解，配置在主启动类上即可
 *
 * @author zhangbin
 * @date 2025/02/22
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(ConfigMarker.class) // 开启此注解后会向IOC容器中注入 ConfigMarker bean
public @interface EnableDistributedLock {

}
